﻿using DevExpress.Xpf.Charts;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Data;

namespace TeBigCommonUI.Items
{
    /// <summary>
    /// Interaction logic for Bar2D.xaml
    /// </summary>
    public partial class Line2DChart : XYDiagramChartControl
    {
        public Line2DChart()
        {
            InitializeComponent();

            //chart.MouseMove += Chart_MouseMove;
        }

        protected override Series CreateSeriesFromDataSource(IList<SeriesDataSource> source, int index)
        {
            return new LineSeries2D()
            {
                MarkerModel = new CircleMarker2DModel(),
                MarkerVisible = true,
                LineStyle = new LineStyle
                {
                    Thickness = source[index].LineThickness
                },
            };
        }

        protected override void OnInitChart()
        {
            InitChartInternal(chart, chart_diagram);
        }

    }
}